﻿define(["require", "exports"], function(require, exports) {
    var Server = (function () {
        function Server() {
        }
        Server.getAlbums = function (onSuccess, onFailure) {
            $.ajax({
                type: "GET",
                dataType: "json",
                url: "/api/Photos/GetAlbums",
                success: onSuccess,
                failure: onFailure
            });
        };

        Server.getPhotosInAlbum = function (albumId, onSuccess, onFailure) {
            $.ajax({
                type: "GET",
                dataType: "json",
                url: "/api/Photos/GetPhotosInAlbum?albumId=" + albumId,
                success: onSuccess,
                failure: onFailure
            });
        };
        return Server;
    })();

    
    return Server;
});
//# sourceMappingURL=Server.js.map
